package cn.liyiming.bbs.core.shiro;

import cn.liyiming.bbs.modular.system.model.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * @program: bbsblog
 * @description: 前台登录用户
 * @author: 李一鸣
 * @create: 2020-03-01 21:23
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShiroUserFront implements Serializable {
    public static final long serialVersionUID = 1L;


    public User user;
    public List<Integer> roleList; // 角色集
    /**
     * 角色集
     */
    public Set<String> permissionNames;

    /**
     * 角色名称集
     */
    public Set<String> roleNames;
}
